'use strict'
const path = require('path')
const proxyConfig = require('./proxyConfig')

module.exports = {
  dev: {
    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/web-hft-ee/',
    //proxyTable: proxyConfig.dev,
    // Various Dev Server settings
    // host: '192.168.2.39', // can be overwritten by process.env.HOST
    host: '0.0.0.0',
    port: 50003,
    autoOpenBrowser: false,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false,
    useEslint: false,
    showEslintErrorsInOverlay: false,
    devtool: '#source-map',
    // devtool: 'cheap-module-eval-source-map',
    cacheBusting: true,
    cssSourceMap: true
  },

  build: {
    index: path.resolve(__dirname, '../dist/index.html'),
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '/web-hft-ee/',
    // proxyTable: proxyConfig.prod,
    productionSourceMap: false,
    devtool: '#source-map',
    // productionGzip: false,
    // productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report
  },
  build_test: {
    index: path.resolve(__dirname, '../dist/index.html'),
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '/zye-test/',
    // proxyTable: proxyConfig.prod,
    productionSourceMap: true,
    devtool: '#source-map',
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report
  },
}
